package com.xuchy.designpattern.factory.factoryMethod;

import com.xuchy.designpattern.factory.simplefactory.IFood;

/**
 * @author xuchy
 * @Date 2019/11/5 23:22
 */
public class FactoryMethodTest {
    public static void main(String[] args) {
        FoodFactory foodFactory = new NoodleFactory();
        IFood food = foodFactory.makeFood();
        food.eat();
    }
}
